

using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using Yozeev.BusinessLogic;

namespace Yozeev.EntityMapper.TicketRoles
{
    public class TicketRoleCfg : IEntityTypeConfiguration<TicketRole>
    {
        public void Configure(EntityTypeBuilder<TicketRole> builder)
        {

			 
            builder.ToTable("TicketRoles", YoYoAbpefCoreConsts.SchemaNames.Ticket);
            //builder.ToTable("TicketRoles");

            //可以自定义配置参数内容

            //// custom codes

            builder.Property(a => a.RoleId).HasMaxLength(YoYoAbpefCoreConsts.EntityLengthNames.Length64);
            //builder.Property(a => a.SaleUser).HasMaxLength(YoYoAbpefCoreConsts.EntityLengthNames.Length64);
            builder.Property(a => a.TicketPriceId).HasMaxLength(YoYoAbpefCoreConsts.EntityLengthNames.Length64);


            //// custom codes end
        }
    }
}


